package com.site.wisdom_construction.service.iotModule;

import com.site.wisdom_construction.dao.iotModule.HighSupportsRecordDao;
import com.site.wisdom_construction.entity.iotModule.HighSupportsRecord;
import com.site.wisdom_construction.statisticsResult.HighSupportsRecordByTypeName;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/3/8
 * @Description
 */
@Service
public class HighSupportsRecordService implements HighSupportsRecordDao {
    @Autowired
    private HighSupportsRecordDao highSupportsRecordDao;

    @Override
    public int insertHighSupportsRecord(Map map) {
        return highSupportsRecordDao.insertHighSupportsRecord(map);
    }

    @Override
    public List<HighSupportsRecord> findHighSupportsRecordByEquipmentId(Map map) {
        return highSupportsRecordDao.findHighSupportsRecordByEquipmentId(map);
    }

    @Override
    public List<HighSupportsRecordByTypeName> countHighSupportsRecordByMeasurePoint(Map map) {
        return highSupportsRecordDao.countHighSupportsRecordByMeasurePoint(map);
    }

    @Override
    public List<HighSupportsRecordByTypeName> countHighSupportsRecordByAll(Map map) {
        return highSupportsRecordDao.countHighSupportsRecordByAll(map);
    }

    @Override
    public List<HighSupportsRecord> findHighSupportsRecordByPage(Map map) {
        return highSupportsRecordDao.findHighSupportsRecordByPage(map);
    }

    @Override
    public HighSupportsRecord findHighSupportsRecordByNew(Map map) {
        return highSupportsRecordDao.findHighSupportsRecordByNew(map);
    }

    @Override
    public long Total(Map map) {
        return highSupportsRecordDao.Total(map);
    }

    @Override
    public int deleteHighSupportsRecord(Map map) {
        return highSupportsRecordDao.deleteHighSupportsRecord(map);
    }
}
